וַיֹּאמֶר֩ דָּוִ֨ד אֶל־יְהוָ֜ה בִּרְאֹת֣וֹ ׀ אֶֽת־הַמַּלְאָ֣ךְ ׀ הַמַּכֶּ֣ה בָעָ֗ם וַיֹּ֙אמֶר֙ הִנֵּ֨ה אָנֹכִ֤י חָטָ֙אתִי֙ וְאָנֹכִ֣י הֶעֱוֵ֔יתִי וְאֵ֥לֶּה הַצֹּ֖אן מֶ֣ה עָשׂ֑וּ תְּהִ֨י נָ֥א יָדְךָ֛ בִּ֖י וּבְבֵ֥ית אָבִֽי׃ (פ)
And David spoke unto the LORD when he saw the angel that smote the people, and said: ‘Lo, I have sinned, and I have done iniquitously; but these sheep, what have they done? let Thy hand, I pray Thee, be against me, and against my father’s house.’
Read Kabbalistic (mystical) interpretations of II Samuel 24:17: Zohar and classical Jewish mystical sources, free online.